﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using JChatCore.Topic;
namespace JChatData.TopicMap
{
   public class TopicMap:EntityConfiguration<Topic>
    {
       /// <summary>
       /// Mapping to entity
       /// Code by Linh Pham
       /// </summary>
       public TopicMap()
       {
           HasKey(c => c.TopicID);
           Property(c => c.TopicID).IsIdentity();
           Property(c => c.SystemName).IsRequired();
           Property(c => c.Title);
           Property(c => c.Body);
           Property(c => c.MetaKeyword);
       }
    }
}
